package com.kailong.mapper.sys;

import com.baomidou.mybatisplus.core.mapper.BaseMapper;
import com.kailong.entity.sys.RoleEntity;
import org.apache.ibatis.annotations.Mapper;
import org.apache.ibatis.annotations.Select;

import java.util.List;

/**
 * created by kailong on 2025/8/12
 */
@Mapper
public interface RoleMapper extends BaseMapper<RoleEntity> {
    /**
     * 根据用户ID查询角色列表
     * @param userId 用户ID
     * @return 角色列表
     */
    List<RoleEntity> findRoleByUserId(Long userId);
}
